package cn.project.lemontree.service.impl;

import cn.project.lemontree.bean.Insurance;
import cn.project.lemontree.service.InsuranceService;
import cn.project.lemontree.dao.InsuranceDao;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("insuranceService")
public class InsuranceServiceimpl extends ServiceImpl<InsuranceDao, Insurance> implements InsuranceService {
    @Resource
    private InsuranceDao insuranceDao;

    @Override
    public List<Insurance> listpage(int page,int size,String ddesc){
        return insuranceDao.listpage((page - 1) * size,size,ddesc);
    }

    @Override
    public int count(String ddesc){
        return insuranceDao.count(ddesc);
    }
}
